// Mesh Format Loader SBS
// (c) jimon game studio

#ifndef JEH_CMESHFORMATLOADER_SBS
#define JEH_CMESHFORMATLOADER_SBS

#include "CMeshLoader.h"

#ifdef JE_SUPPORT_FILEFORMAT_SBS

#include "IMeshFormatLoader.h"

namespace je
{
	namespace scene
	{
		//! SBS Format Loader
		class CMeshFormatLoader_SBS:public je::scene::IMeshFormatLoader
		{
		public:
			//! Constructor
			CMeshFormatLoader_SBS();

			//! Destructor
			~CMeshFormatLoader_SBS();

			//! Load Mesh
			jeMesh * LoadMesh(core::IBuffer * DataBuffer,video::IRender * Render);

			//! Save Mesh
			void SaveMesh(core::IBuffer * DataBuffer,jeMesh * Mesh);

			//! Return true if mesh loader can work with this data
			u1 CanWorkWithThis(core::IBuffer * DataBuffer);

			//! Return Mesh Format
			MeshFormat GetMeshFormat()
			{
				return MF_SBS;
			}
		};
	}
}

#endif
#endif
